package edu.usc.csci578.project.util.parse;

import java.io.FileNotFoundException;

import edu.usc.csci578.project.generated.specified.SmellArch;

/**
 * Helper class to parse the smellArch_specified XML file.
 */
public class ArchSpecifiedParser extends XMLJaxbParser
{
	/**
	 * Constructor which takes the path to a smellArch_specified XML file
	 * 
	 * @param xmlFilePath
	 *            path to the smellArch_specified XML file
	 */
	public ArchSpecifiedParser(final String xmlFilePath)
	{
		super(xmlFilePath, "edu.usc.csci578.project.generated.specified");
	}

	/**
	 * Gets the Jaxb object representing the root of the smellArch_specified XML
	 * file
	 * 
	 * @return the Jaxb object representing the root of the smellArch_specified
	 *         XML file
	 * @throws FileNotFoundException
	 *             if the XML file was not found
	 */
	public SmellArch getRootObject() throws FileNotFoundException
	{
		return (SmellArch) super.unmarshalXML(SmellArch.class).getValue();
	}
}
